package com.bigdata.service.mapper;

import com.bigdata.service.domain.Tags;
import com.bigdata.service.domain.vo.TagsVo;
import com.bigdata.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 标签字典Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-15
 */
public interface TagsMapper extends BaseMapperPlus<TagsMapper, Tags, TagsVo> {

    @Select("SELECT ts.* from tags ts LEFT JOIN dataset_tags dt ON ts.id = dt.tag_id where dataset_id = #{datasetId}")
    List<TagsVo> queryTagsList(@Param("datasetId") Long datasetId);
}
